package main

import (
	"fmt"
	"time"
	"utils/cont"

	"utils/tools"
)

func main() {
	set := entity.NewHashSet[string]("asd", "nihao1asd")
	fmt.Println(set.ToSlice())
	stamp := tools.TimeStrToStamp("2021-01-02 15:04:05", cont.TimeFormat)
	stamp2 := tools.TimeStrToStamp(time.Now().Format(cont.TimeFormat), cont.TimeFormat)
	fmt.Println(stamp)
	fmt.Println(stamp2)
	str := tools.TimestampToStr(stamp, cont.TimeFormatDay)
	fmt.Println(str)

	stamp = tools.TimeStrToStamp("2021-01-02", cont.TimeFormatDay)
	fmt.Println(stamp)
	str = tools.TimestampToStr(stamp, cont.TimeFormat)
	fmt.Println(str)

}
